
import React from 'react';

import { HomeOutlined, SettingOutlined } from '@ant-design/icons';

import FileExplorer from './pages/FileExplorer';

import SettingsPage from './Settings';



// This config is for ProLayout menu

export const menuRoutes = [

  {

    path: '/',

    name: 'File Explorer',

    icon: <HomeOutlined />,

  },

  {

    path: '/settings',

    name: 'Settings',

    icon: <SettingOutlined />,

  },

];



// This config is for React Router

export const routerConfig = [

  {

    path: '/',

    // The element will be the App layout component

    // We define it in main.tsx to avoid circular dependencies

    children: [

      {

        index: true,

        element: <FileExplorer />,

      },

      {

        path: '/settings',

        element: <SettingsPage />,

      },

    ]

  }

];


